{% extends "zinnia/skeleton.html" %}
{% load zinnia_tags tagging_tags i18n %}
{% block script %}
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">{lang: 'en'}</script>
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: 'your app id', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
</script>
{% endblock %}
{% block meta %}<meta name="generator" content="Zinnia 0.9.dev" />{% endblock %}

{% block link %}
    <link rel="index" href="{% url zinnia_entry_archive_index %}" />
    <link rel="EditURI" type="application/rsd+xml" href="{% url zinnia_rsd %}" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="{% url zinnia_wlwmanifest %}" />
    <link rel="search" type="application/opensearchdescription+xml" title="Jay's Blog" href="{% url zinnia_opensearch %}" />
    <link rel="alternate" type="application/rss+xml" title="Latest entry in RSS format" href="{% url zinnia_entry_latest_feed %}" />
    {% get_archives_entries "zinnia/tags/archives_entries_link.html" %}
{% endblock %}

{% block breadcrumbs %}
  {% zinnia_breadcrumbs %}
{% endblock %}

{% block mainnav %}
  {% get_categories %}
{% endblock %}

{% block sidebar %}
<h4>About this site</h4>
<p class="meta">Blog Jay, Tu The Hien<br />Programming and life</p>
<hr />
<p><g:plusone href="http://www.thehien.info"></g:plusone></p>

<hr />
<h4>Search</h4>
<div class="search">
  <form method="get" id="searchform" action="{% url zinnia_entry_search %}">
      <input type="text" class="field" value="{% trans "Keywords..." %}" name="pattern" id="searchbox" onfocus="this.value=''"/>
  </form>
</div>
<hr />
<h4>Network and Services</h4>
    <ul>
        <li>
        <a href="http://facebook.com/thehien">
        <img src="https://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico"> Facebook </a>
        <li>
		 <li>
        <a href="https://profiles.google.com/109004152008484994678">
        <img src="http://ssl.gstatic.com/s2/oz/images/favicon.ico"> Google+ </a>
        <li>
        <a href="http://sg.linkedin.com/in/thehien">
        <img src="http://static01.linkedin.com/scds/common/u/img/favicon_v3.ico" /> Linkedin
        </a>
        </li>
    </ul>
{% if user.is_authenticated %}
<p></p>

<div class="tools">
<h4>{% trans "Tools" %}</h3>
<ul>
{% if perms.zinnia %}
<li>
  <a href="{% url admin:app_list "zinnia" %}" title="{% trans "Dashboard" %}">
    {% trans "Dashboard" %}
  </a>
</li>
{% endif %}
{% if perms.zinnia.add_entry %}
<li>
  <a href="{% url admin:zinnia_entry_add %}" title="{% trans "Post an entry" %}">
    {% trans "Post an entry" %}
  </a>
</li>
{% endif %}
{% block admin_tools %}
{% endblock %}
<li>
  <a href="{% url admin:logout %}" title="{% trans "Log out" %}">
    {% trans "Log out" %}
  </a>
</li>
</ul>
</div>
{% endif %}
{% endblock %}
